{include file="header.html"}
<script charset="utf-8" type="text/javascript" src="../includes/libraries/javascript/highcharts/highcharts.js" ></script>
<script charset="utf-8" type="text/javascript" src="../includes/libraries/javascript/statistics.js" ></script>
<script charset="utf-8" type="text/javascript" src="../includes/libraries/javascript/jquery.ui/jquery.ui.js" ></script>
<script charset="utf-8" type="text/javascript" src="../includes/libraries/javascript/jquery.ui/i18n/zh-CN.js" ></script>
<script charset="utf-8" type="text/javascript" src="../includes/libraries/javascript/timepicker/js/jquery-ui-timepicker-addon.js" ></script>
<link rel="stylesheet" type="text/css" href="/includes/libraries/javascript/jquery.ui/themes/ui-lightness/jquery.ui.css"  />
<div id="rightTop">
    <p>{$lang.ad}</p>
    <ul class="subnav">
        <li><a class="btn1" href="index.php?app=promotional_activity">{$lang.manage}</a></li>
        <li><span>{$lang.edit}</span></li>
    </ul>
</div>
<div class="info">
    <form method="post" enctype="multipart/form-data" id="promotional_activity_form">
        <table class="infoTable">
            <tr>
                <th class="paddingT15">
                    选择大图:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableFile2" id="banner_url" type="file" name="banner_url" value="{$info.banner_url}"/>
                    <!--{if $info.banner_url}-->
                    <img class="show_image" src="{res file=style/images/preview.png}" />
                    <div style="position:absolute; display:none"><img src="{$info.banner_url}?{$random_number}" /></div>
                    <!--{/if}-->
                    <label class="field_notice">{$lang.limit_img}</label>
                </td>
            </tr>
            <tr>
                <th class="paddingT15">
                    设置开始时间:</th>
                <td class="paddingT15 wordSpacing5" >
                    <div class="left">
                        <input class="txt date" readonly type="text" value="{$info.start_time|date:Y-m-d}" id="start_time" name="start_time">
                    </div>
                </td>
            </tr>
            <tr>
                <th class="paddingT15">
                    设置结束时间:</th>
                <td class="paddingT15 wordSpacing5" >
                    <div  class="left">
                        <input class="txt date" readonly type="text" value="{$info.end_time|date:Y-m-d}" id="end_time" name="end_time">
                    </div>
                </td>
            </tr>
            <tr>
                <th></th>
                <td class="ptb20">
                    <input class="formbtn" type="submit" name="Submit" value="{$lang.submit}" />
                    <input class="formbtn" type="reset" name="Submit2" value="{$lang.reset}" />
                </td>
            </tr>
        </table>
    </form>
</div>
{include file="footer.html"}
<script>
    $(function () {
        $(".show_image").mouseover(function () {
            $(this).next("div").show();
        });
        $(".show_image").mouseout(function () {
            $(this).next("div").hide();
        });

        $('#start_time').datetimepicker({
            format: 'yyyy-mm-dd hh:ii:ss',
            autoclose: true,
            minView: 0,
            language : 'zh-CN',
            minuteStep:1
        });
        $('#end_time').datetimepicker({
            format: 'yyyy-mm-dd hh:ii:ss',
            autoclose: true,
            minView: 0,
            language : 'zh-CN',
            minuteStep:1
        });
    })
</script>
